﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class xwgg : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AspNetPager1.RecordCount = SQL.ExecScalar("select * from wtnews where wtnewsType='考试新闻' order by pkID desc");
        AspNetPager1.PageSize = 18;

        PageData.bindData(Repeater1, "select * from wtnews where wtnewsType='考试新闻' order by pkID desc", "wtnews", AspNetPager1);
    }
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        PageData.bindData(Repeater1, "select * from wtnews where wtnewsType='考试新闻' order by pkID desc", "wtnews", AspNetPager1);
    }
}
